﻿<local:DocumentBase x:Class="WPFExcelReport.JLTVA"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
        xmlns:wep="clr-namespace:WPFExcelReport"
       Height="700" Width="1024" 
       Background="White" 
         Loaded="Window_Loaded"
        Title="JLTVA"  
     >
    <local:DocumentBase.Resources>
    </local:DocumentBase.Resources>
    <Grid DataContext="{Binding}" Width="1021">
        <Grid.RowDefinitions>
            <RowDefinition Height="100" />
            <RowDefinition Height="150*" />
            <RowDefinition Height="200*" />
            <RowDefinition Height="50*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="512*"></ColumnDefinition>
            <ColumnDefinition Width="463*"></ColumnDefinition>
            <ColumnDefinition Width="49*" />
        </Grid.ColumnDefinitions>        
        <StackPanel Grid.ColumnSpan="2" Orientation="Vertical" Margin="0,0,19,66">
            <WrapPanel Width="950">
                <Label Content="搜索自己品种："    Width="122" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtSTAFF" Width="80" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="Beige" Panel.ZIndex="1"
                         KeyUp="txtART_KeyUp" CharacterCasing="Upper" MaxLength="8" FontSize="18" Foreground="#FF141111" Height="33" />
                <Label Content="系列："    Width="47" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtCOLL" Width="56" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="Pink" Panel.ZIndex="2"
                         KeyUp="txtART_KeyUp" CharacterCasing="Upper" MaxLength="5" FontSize="18" Foreground="#FF141111" Height="33" />
                <Label Content="品种编号(模糊查询)："    Width="174" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtARTICLE" Width="177" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="Pink" Panel.ZIndex="3"
                         KeyUp="txtART_KeyUp" CharacterCasing="Upper" MaxLength="12" FontSize="18" Foreground="#FF141111" Height="33" />
                <Label Content="客户编号："    Width="83" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtCUSTOMER" Width="81" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="YellowGreen" Panel.ZIndex="4"
                         KeyUp="txtART_KeyUp" CharacterCasing="Upper" MaxLength="8" FontSize="18" Foreground="#FF141111" Height="33" />
                
            </WrapPanel>
        </StackPanel>
        <StackPanel Margin="0,35,19,0" Grid.RowSpan="4" Grid.ColumnSpan="2">
            <WrapPanel Width="950">
                <Label Content="规格(模糊查询不可输入中文)："    Width="246" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtDESCR" Width="458" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="YellowGreen" Panel.ZIndex="5"
                         KeyUp="txtART_KeyUp" CharacterCasing="Upper" MaxLength="50" FontSize="18" Foreground="#FF141111" Height="33" />
                <Button Content="查询订单" Height="33" Margin="10,0,0,0"  Name="btnQuery" Width="64" Panel.ZIndex="6"
                        Click="btnQuery_Click"/>
                <Button Content="导出订单" Height="33" Margin="10,0,0,0"  Name="btnEXCEL" Width="65" Panel.ZIndex="7"
                        Click="btnEXCEL_Click"/>
            </WrapPanel>
            <WrapPanel Width="952">
                <fd:FilteringDataGrid CanUserReorderColumns="True"  
          CanUserResizeRows="True" CanUserSortColumns="True"
            IsFilteringCaseSensitive="False"
            AutoGenerateColumns="False"   
                  EnableRowVirtualization="True"  
                  Width="950"
                  Height="530" FontSize="11"
                  EnableColumnVirtualization="True"  
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Auto"
                  RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                               ItemsSource="{Binding}" x:Name="MasterDg" 
                               Grid.ColumnSpan="2" Margin="0,5,0,0" Grid.RowSpan="3" Grid.Row="1">
<!--COLLECTION	ARTICLE	DESCR	VALIDWID	WIDTH	GSQM	GS	PRDNAME	ARTNAME	LABELNAME	BRANDNAME	STRNAME	
                    COMPOSITION	COLOR	FINISHING	STAFF	CUSTOMER	CUNAME	KDART	KDARTBEZ	KDARTCOLOR
 -->
                    <fd:FilteringDataGrid.Columns>
                        <DataGridTextColumn Binding="{Binding Path=COLLECTION}" Header="系列" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=ARTICLE}" Header="品种号" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=DESCR}" Header="规格" Width="SizeToCells" MinWidth="40" MaxWidth="100"  />
                        <DataGridTextColumn Binding="{Binding Path=VALIDWID}" Header="有效幅宽" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=WIDTH}" Header="总幅宽" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=GSQM}" Header="克重" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=GS}" Header="单位" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=PRDNAME}" Header="产品组" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=ARTNAME}" Header="品名组" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=LABELNAME}" Header="LABEL" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=BRANDNAME}" Header="BRAND" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=STRNAME}" Header="组织" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=COMPOSITION}" Header="成份" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=FINISHING}" Header="整理要求" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=STAFF}" Header="录入人" Width="SizeToCells" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=COLOR}" Header="配色" Width="SizeToCells" MinWidth="20" />
                        <DataGridTextColumn Binding="{Binding Path=CUSTOMER}" Header="客户号" Width="SizeToCells" MinWidth="30" />
                        <DataGridTextColumn Binding="{Binding Path=CUNAME}" Header="客户名" Width="SizeToCells" MinWidth="40" MaxWidth="100"/>
                        <DataGridTextColumn Binding="{Binding Path=KDART}" Header="客户品种" Width="SizeToCells" MinWidth="50" MaxWidth="100" />
                        <DataGridTextColumn Binding="{Binding Path=KDARTBEZ}" Header="客户品种描述" Width="SizeToCells" MinWidth="30" MaxWidth="100" />
                        <DataGridTextColumn Binding="{Binding Path=KDARTCOLOR}" Header="客户色号" Width="SizeToCells" MinWidth="30" MaxWidth="100" />
                        
                    </fd:FilteringDataGrid.Columns>
                </fd:FilteringDataGrid  >
            </WrapPanel>
        </StackPanel>
    </Grid>
</local:DocumentBase>
